import axios from '@/utils/request'

export const getDepartment = () => axios.get('/company/department')
export const getManager = () => axios.get('/sys/user/simple')
export const addDepartment = data => axios.post('/company/department', data)
export const getDeptItem = id => axios.get(`/company/department/${id}`)
export const editDeptItem = (id, data) => axios.put(`/company/department/${id}`, data)
export const delDeptItem = id => axios.delete(`/company/department/${id}`)
